package com.reader.cms.entity.common;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * @author gumenghao
 * @@description
 * @date 2018-11-05
 */
@TableName("reader_content_classify_relation")
public class ReaderContentClassifyRelation extends Model<ReaderContentClassifyRelation> {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联id，所有内容的ID
     */

    @TableField("doc_id")

    private String docId;

    /**
     * 内容分类id
     */

    @TableField("classify_id")

    private Integer classifyId;


    @TableField("insert_dt")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date insertDt;


    @TableField("insert_user_id")

    private Integer insertUserId;


    @TableField("updt_dt")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updtDt;


    @TableField("updt_user_id")

    private Integer updtUserId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }

    public Integer getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(Integer classifyId) {
        this.classifyId = classifyId;
    }

    public Date getInsertDt() {
        return insertDt;
    }

    public void setInsertDt(Date insertDt) {
        this.insertDt = insertDt;
    }

    public Integer getInsertUserId() {
        return insertUserId;
    }

    public void setInsertUserId(Integer insertUserId) {
        this.insertUserId = insertUserId;
    }

    public Date getUpdtDt() {
        return updtDt;
    }

    public void setUpdtDt(Date updtDt) {
        this.updtDt = updtDt;
    }

    public Integer getUpdtUserId() {
        return updtUserId;
    }

    public void setUpdtUserId(Integer updtUserId) {
        this.updtUserId = updtUserId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReaderContentClassifyRelation{" +
                ", id=" + id +
                ", docId=" + docId +
                ", classifyId=" + classifyId +
                ", insertDt=" + insertDt +
                ", insertUserId=" + insertUserId +
                ", updtDt=" + updtDt +
                ", updtUserId=" + updtUserId +
                "}";
    }
}